package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Boardroom"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Boardroom implements Serializable {

    /** identifier field */
    private Integer roomId;

    /** nullable persistent field */
    private String roomName;

    /** nullable persistent field */
    private Integer contain;

    /** nullable persistent field */
    private String equipment;

    /** nullable persistent field */
    private String description;

    /** nullable persistent field */
    private String place;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public Boardroom(String roomName, Integer contain, String equipment, String description, String place, String userId, String latestDate, String remark) {
        this.roomName = roomName;
        this.contain = contain;
        this.equipment = equipment;
        this.description = description;
        this.place = place;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public Boardroom() {
    }

    /** minimal constructor */
    public Boardroom(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="RoomId"
     *             unsaved-value="0"
     *         
     */
    public Integer getRoomId() {
        return this.roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    /** 
     *            @hibernate.property
     *             column="RoomName"
     *             length="100"
     *         
     */
    public String getRoomName() {
        return this.roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    /** 
     *            @hibernate.property
     *             column="Contain"
     *             length="10"
     *         
     */
    public Integer getContain() {
        return this.contain;
    }

    public void setContain(Integer contain) {
        this.contain = contain;
    }

    /** 
     *            @hibernate.property
     *             column="Equipment"
     *             length="2147483647"
     *         
     */
    public String getEquipment() {
        return this.equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }

    /** 
     *            @hibernate.property
     *             column="Description"
     *             length="2147483647"
     *         
     */
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /** 
     *            @hibernate.property
     *             column="Place"
     *             length="300"
     *         
     */
    public String getPlace() {
        return this.place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("roomId", getRoomId())
            .toString();
    }

}
